package com.syq.feign;

import com.syq.pojo.Customer;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName: searchFeign
 * @Description: TODO
 * @Create by: syq
 * @Date: 2022/8/16 16:07
 * 远程调用接口*0
 */

@FeignClient(value = "EUREKA-SEARCH") //远程调用微服务名称
@RequestMapping("/search")
@EnableFeignClients(basePackages = {"con.syq.feign"})
public interface SearchFeign {

    @PostMapping("/list")
    public String list(@RequestParam(value = "name") String name);

    @PostMapping("/pojo")
    String pojo(@RequestBody Customer customer);
  /*  @PostMapping("/list/{name}")
    public String list(@PathVariable(value = "name") String name);*/
}
